import { Base } from '../../../utils/base.js'
const app = getApp()
class Theme extends Base {
  constructor() {
    super()
  }
  /*得到主题数据*/
  getThemeData(data, callback) {
    let param = {
      url: app.globalData.api + '/api/v1.0/themes/detail/' + data['theme_id'],
      data,
      sCallback: (res) => {
        callback && callback(res.data.data)
      }
    }
    this.request(param)
  }
}

export { Theme }